package com.isoft.airportsystem.service.flight;

import com.isoft.airportsystem.entity.flight.BaggageInfo;
import com.isoft.airportsystem.util.PageResult;

import java.util.List;
import java.util.Map;

public interface BaggageService {
    int getTotalBaggageCount();
    int getMishandledBaggageCount();
    Map<String, Integer> getBaggageStatusStats();
    List<Integer> getWeeklyBaggageCounts(List<String> dates);

    // 根据航班ID获取行李
    List<BaggageInfo> getByFlightId(String flightId);

    // 根据行李标签获取行李
    BaggageInfo getByTag(String baggageTag);

    // 查询行李带上的行李
    List<BaggageInfo> getByBeltNumber(String beltNumber);

    // 分页查询行李
    PageResult<BaggageInfo> queryBaggagePage(int pageNum, int pageSize, BaggageInfo baggage);

    boolean addBaggage(BaggageInfo baggage);
    boolean updateBaggage(BaggageInfo baggage);
    boolean deleteBaggage(String id);
}